﻿using System;
using System.IO;
using System.Reflection;
using System.ComponentModel;
using System.Windows.Media;
using System.Windows.Media.Media3D;

using SBPweb.Modules.Modularity;

using SBPweb.MediaCenter.Modules.Customizer.WPF.Controls;

namespace SBPweb.MediaCenter.Modules.Customizer.WPF
{

    public class Module : Customizer.Module
    {

        #region Constructor logic

        public Module(IModuleHost parent)
            : base(parent)
        {
        }

        #endregion

        #region Methods

        #region Initialization logic

        public override void Initialize()
        {
            base.Initialize();

            if (HostType != ModuleHostType.WindowsForms)
            {
                //TODO: log something
                return;
            }
        }

        public override void InitializeMenus()
        {
            //Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SBPweb.MediaCenter.Modules.Customizer.WPF.Resources.MenuItem.3DS");
            //MenuItem mItem = new MenuItem(stream);// @"c:\Users\Laci\Projects\SBPweb\SBPweb.MediaCenter\Artwork\Teapot.3DS");
            //mItem.BackgroundColor = Color.FromRgb(224, 192, 0);
            //Host.Menu.Add(mItem);
            MainMenuItem mmItem = new MainMenuItem();
            mmItem.BackgroundColor = Color.FromRgb(224, 192, 0);
            pHost.Menu.Add(mmItem);
        }

        public override void InitializeSmartparts()
        {
            //throw new NotImplementedException();
        }

        #endregion

        public override void LoadPersistency()
        {
            throw new NotImplementedException();
        }

        public override void SavePersistency()
        {
            throw new NotImplementedException();
        }

        public override void Terminate()
        {
            //
        }

        #endregion

    }

}